package com.juc.threadPoolExecutor.threadPoolExecutor18;

import java.util.concurrent.SynchronousQueue;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;

public class GetCorePoolSize_Test1 {
	/**
	 * getCorePoolSize 作用：取得构造方法传入的CorePoolSize值
	 */
	public static void main(String[] args) {
		ThreadPoolExecutor executor = 
				new ThreadPoolExecutor(2, 5, 100, TimeUnit.SECONDS, new SynchronousQueue<Runnable>());
		
		System.out.println("getCorePoolSize = " +  executor.getCorePoolSize());
	}
}
